package com.ezjie.ielts.model;

import java.util.ArrayList;
import java.util.List;

public class SixDate {

	public static final String key2 = "status2";
	public static final String key3 = "status3";
	public static final String key4 = "status4";
	public static final String key5 = "status5";
	public static final String key6 = "status6";
	public static final String key7 = "status7";

	private String date;
	private int status2 = 0;
	private int status3 = 0;
	private int status4 = 0;
	private int status5 = 0;
	private int status6 = 0;
	private int status7 = 0;

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public int getStatus2() {
		return status2;
	}

	public void setStatus2(int status2) {
		this.status2 = status2;
	}

	public int getStatus3() {
		return status3;
	}

	public void setStatus3(int status3) {
		this.status3 = status3;
	}

	public int getStatus4() {
		return status4;
	}

	public void setStatus4(int status4) {
		this.status4 = status4;
	}

	public int getStatus5() {
		return status5;
	}

	public void setStatus5(int status5) {
		this.status5 = status5;
	}

	public int getStatus6() {
		return status6;
	}

	public void setStatus6(int status6) {
		this.status6 = status6;
	}

	public int getStatus7() {
		return status7;
	}

	public void setStatus7(int status7) {
		this.status7 = status7;
	}
	
	public int[] getInts(){
		int[] intss = {status2==0?0:1,status3==0?0:1,status4==0?0:1,status5==0?0:1,status6==0?0:1,status7==0?0:1};
		return intss;
	}

	public List<ViewHolder> getList() {
		List<ViewHolder> list = new ArrayList<SixDate.ViewHolder>();
		if (status2 > 0) {
			ViewHolder vh = new ViewHolder();
			vh.str = key2;
			vh.i = status2;
			list.add(vh);
		}
		if (status3 > 0) {
			ViewHolder vh = new ViewHolder();
			vh.str = key3;
			vh.i = status3;
			list.add(vh);
		}
		if (status4 > 0) {
			ViewHolder vh = new ViewHolder();
			vh.str = key4;
			vh.i = status4;
			list.add(vh);
		}
		if (status5 > 0) {
			ViewHolder vh = new ViewHolder();
			vh.str = key5;
			vh.i = status5;
			list.add(vh);
		}
		if (status6 > 0) {
			ViewHolder vh = new ViewHolder();
			vh.str = key6;
			vh.i = status6;
			list.add(vh);
		}
		if (status7 > 0) {
			ViewHolder vh = new ViewHolder();
			vh.str = key7;
			vh.i = status7;
			list.add(vh);
		}
		return list;
	}

	public class ViewHolder {
		public String str;
		public int i;
	}

}
